﻿<?php
error_reporting(0);
define('IN_QY',true);
session_start();
require("include/common.inc.php");
define('SCRIPT','ad_list');

// if(!$_COOKIE['userid']){
      // echo "<script type='text/javascript'>location.href='/wap/mlogin.php';</script>";
      // exit;
// }


$maijiaid=trim($_GET['fid']);
if($maijiaid==""){
      echo "<script type='text/javascript'>location.href='main.php';</script>";
      exit;
}
$sqlu = "select * from tbl_user where id=".$maijiaid;
$queryu=mysql_query($sqlu);
$rowu=mysql_fetch_array($queryu);
$jifen = $rowu['jifen'];
$yuee = $rowu['yuee'];
$xyf = $rowu['xyf'];
$vip = $rowu['vip'];
$touxiang = $rowu['username'];
//

$sqlup = "select * from tbl_shoptoto where shopuid='".$maijiaid."'";
$queryup=mysql_query($sqlup);
$rowup=mysql_fetch_array($queryup);
if($rowup){
$shopfengmian = $rowup['photo'];		
}else{
$shopfengmian = '/ui/image/shopbjt.jpg';	
	
}

//刷单表
$sqlshua = "select * from tbl_shuadan where uid='".$maijiaid."'";
$queryshua=mysql_query($sqlshua);
$rowshua=mysql_fetch_array($queryshua);

if($rowshua){	
$shua = $rowshua['count']; 	
$shuasc = $rowshua['collectcount']; 	
}else{
$shua =0; 
$shuasc = 66; 	
}
//查成交量
$sqlb = "select count(*) as dd from tbl_lbb where state='1' AND daili='".$maijiaid."'";
$queryb=mysql_query($sqlb);
$rowb=mysql_fetch_array($queryb);
$chengjiaoliang = $rowb['dd']+$shua;  
//zaishoumai
$sqla = "select count(*) as cc from tbl_taospp where state=0 AND ggunit='".$maijiaid."'";
$querya=mysql_query($sqla);
$rowa=mysql_fetch_array($querya);
$zaishoumai = $rowa['cc'];
//shouchang
$sqld = "select count(*) as dd from tbl_shoucang where  maijia='".$maijiaid."'";
$queryd=mysql_query($sqld);
$rowd=mysql_fetch_array($queryd);
$shouchang = $rowd['dd']+$shuasc;
//在当前商家消费额

$sqlff = "select sum(totalp-yajin) as ff from tbl_lbb where  daili='".$maijiaid."' AND userid='".$_COOKIE['userid']."' and state=1 ";
$queryff=mysql_query($sqlff);
$rowff=mysql_fetch_array($queryff);
$userallmoney1 = $rowff['ff'];
//
if($userallmoney1==""){
$userallmoney=0;		
}
else{
$userallmoney=$userallmoney1;
	
}
//对应等级
    $sqlgg = "select * from tbl_shopmember where shopuid=".$maijiaid;
    $querygg = mysql_query($sqlgg);
    while ($rowgg=mysql_fetch_array($querygg)) {
        if ($userallmoney>=$rowgg['low'] && $userallmoney<$rowgg['high']) {
            $class = $rowgg['grade'];
            break;
        }
    }
	
//


$classimg = "";
$classtit = "";
$sql = "select score from tbl_shopscore where shopid=".$maijiaid;
$query=mysql_query($sql);
$rowcnum=mysql_fetch_array($query);
if ($rowcnum['score']>0) {
    $sql = "select * from tbl_shopclass";
    $query = mysql_query($sql);
    while ($rowcmar=mysql_fetch_array($query)) {
        if ($rowcnum['score']>=$rowcmar['score_low'] && $rowcnum['score']<=$rowcmar['score_high']) {
            $classimg = $rowcmar['img'];
            $classtit = $rowcmar['title'];
            break;
        }
    }
}	
	
	

	
	
//sc
if($_GET["act"]=="sc")
{
	if(!$_COOKIE['userid']){
	echo "<script type='text/javascript'>location.href='mlogin.php';</script>";
	exit;
}

	   $maijiaa=$_GET['maijia'];
	   if($maijiaa==$_COOKIE['userid']){
	echo "<script type='text/javascript'>alert('不能收藏自己的店铺!');history.go(-1);</script>";
	exit;
}
	   $sqlh = "select * from tbl_shoucang where  maijia = '".$maijiaa."'  AND userid = '".$_COOKIE['userid']."'  ";
    $queryh=mysql_query($sqlh);
    $rowh=mysql_fetch_array($queryh);
    if($rowh){
        echo "<script type='text/javascript'>alert('不要重复收藏!');history.go(-1);</script>";
        exit;
    }
	
		$sql = "insert into
	 tbl_shoucang
	  values (
	  	0,
	  	'".$_COOKIE['userid']."',
		'".$infoidd."',
		'".$maijiaa."',		
	    '".date('Y-m-d H:i:s')."',
		1
		)";
	mysql_query($sql);
	 mysql_close();
	 echo "<script type='text/javascript'>alert('收藏店铺成功');history.go(-1);</script>";
	 exit;
}
//



?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title><?=$_COOKIE['shuyu']?>卖家中心-众晒网</title>
    <link href="/ui/css/Hui.css" rel="stylesheet" type="text/css" />
    <link href="/ui/css/mobiscroll.custom.min.css" rel="stylesheet" type="text/css" />	
    <link href="/ui/plugins/swiper/swiper.min.css" rel="stylesheet" />	
    <style type="text/css">
        #header{width:100%; position:absolute; top:0;}
        #footer{width:100%; position:absolute; bottom:0;}
         #main{width:100%; overflow: auto; position:absolute; top:44px;bottom:55px;background: white;}
		.head-background0 { background-color: #FF9800; }
        .head-background2 { background-color: #a0c49e; }
    </style>
</head>
<body>
    <header class="H-header head-background0" id="header">		  
		     <?php if($_GET['togo']==1){?>  
        <span class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-white H-padding-horizontal-left-5 H-z-index-100" onclick="H.openWin('main','main.php');">
		<i class="H-iconfont H-icon-arrow-left H-font-size-18 H-vertical-middle"></i>
		</span>					 
			 
			   <?php }else { ?>     
        <span class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-white H-padding-horizontal-left-5 H-z-index-100" onclick="H.closeWin();">
		<i class="H-iconfont H-icon-arrow-left H-font-size-18 H-vertical-middle"></i>
		</span>			   
			   	  <?php } ?>  
			   
			   
        <div class="H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-white H-position-absolute H-width-100-percent" id="tag">
            <div onclick="H.openWin('taomaijiashop', 'taomaijiashop.php?fid=<?=$maijiaid?>');" class="H-header-tag H-font-size-14 H-padding-vertical-both-2 H-padding-horizontal-both-12 H-border-vertical-both-white H-border-horizontal-both-white H-border-radius-12-left-both H-overflow-hidden H-center-all H-theme-background-color-white H-theme-font-color5">首页</div>
            <div tapmode="#" onclick="H.openWin('#','taomaijiashop.php?fid=<?=$maijiaid?>#all');" class="H-header-tag H-font-size-14 H-padding-vertical-both-2 H-padding-horizontal-both-12 H-border-vertical-both-white H-border-horizontal-both-white H-border-radius-12-right-both H-overflow-hidden H-center-all ">全部</div>
        </div>
      <span tapmode="#" onclick="H.openWin('#','indd5.php?uid=<?=$maijiaid?>');"  class="H-icon H-position-relative H-display-inline-block H-float-right H-vertical-middle H-theme-font-color-white H-padding-horizontal-right-10 H-z-index-100"><i class="H-iconfont H-icon-search H-font-size-18 H-vertical-middle"></i></span>		
		
    </header>
    <div id="main">

        <div class="H-theme-background-color4-active  H-horizontal-center  H-overflow-hidden" style="min-height: 165px;background-image: url(<?=$shopfengmian?>); background-size:100% 100%;H-theme-background-color4-active H-padding-10 H-margin-horizontal-both-10 H-margin-vertical-both-5 H-box-sizing-border-box">

    </div>
	
        <div class="H-overflow-hidden H-max-width-100-percent H-padding-horizontal-both-10 H-box-sizing-border-box" style="margin-top: -44px;margin-left: -32%;">
            <div class="picture H-position-relative  H-margin-horizontal-auto" style="width: 96px; height: 96px;"><span class="H-icon H-display-block H-position-absolute H-center-all H-border-radius-circle H-z-index-1000 H-line-height-0" style="height: 20px; width: 20px; bottom: 5px; right: 5px; ">
   <!-- vip等级照片显示 -->
   <!-- v1 -->
        <?php if($rowu['viplevel']==1){?>  
            <img src="/ui/image/vip2.png" alt="" style="width: 25px;height: 25px;">
        <?php } ?>
   <!-- v2 -->
        <?php if($rowu['viplevel']==2){?>  
            <img src="/ui/image/vip3.png" alt="" style="width: 25px;height: 25px;">
        <?php } ?>   
   <!-- v3 --> 
        <?php if($rowu['viplevel']==3||$rowu['viplevel']==4){?>  
            <img src="/ui/image/vip4.png" alt="" style="width: 25px;height: 25px;">
        <?php } ?>   
   <!-- end -->   
            
            </span>
			<img src="<?=$touxiang?>" class="animated rotateIn H-display-block H-border-radius-circle" alt="" title="" style="width: 90px; height: 90px; border:3px solid rgba(255,255,255,0.3);" /></div>
        </div>
	
        <div class="H-flex-item H-padding-10">
            <strong class="H-font-weight-normal font-weight-500 H-font-size-16 H-display-block"><?=$rowu['shuyu']?></strong>
		
        </div>

	        <div class="H-flexbox-horizontal H-text-align-center H-padding-horizontal-both-5 H-line-height-normal H-theme-font-color-black H-padding-vertical-both-10 H-box-sizing-border-box H-border-vertical-bottom-after" style="margin-top: -16px;">
            <div class="H-flex-item">
                <span class="H-icon H-center-all"><?=$zaishoumai?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">在售宝贝</label>
            </div>
            <div class="H-flex-item">
                <span class="H-icon H-center-all"><?=$chengjiaoliang?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">累计交易</label>
            </div>
            <div class="H-flex-item">
                <span class="H-icon H-center-all"><?=$shouchang?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">收藏人数</label>
            </div>
        </div>
	
	
	
	        <div class="H-theme-background-color-white H-padding-horizontal-left-5 H-padding-vertical-bottom-10">
            <div class="swiper-container">
                <div class="swiper-wrapper">

						<?php 

    $sql="select * from tbl_shopyhq where shopuid=".$maijiaid." and state=0 AND type=0  and endtime>UNIX_TIMESTAMP(now())  order by id desc limit 20";
    $query=mysql_query($sql);
    while ($row=mysql_fetch_array($query)) {
    ?>  			
				<?php
				$sqle = "select * from tbl_yhq where  userid='".$_COOKIE['userid']."' AND yhq_id='".$row['id']."'"  ;
                $querye=mysql_query($sqle);
                $rowe=mysql_fetch_array($querye);
			if ($rowe) {
           $lingqucount = $rowe['shuliang'];
        }else{
            $lingqucount = 0;
        }			
	            ?>

					<?php if($row['one']<=$lingqucount){ ?>
		
			    <div class="swiper-slide">
                        <div class="H-padding-horizontal-both-5 H-padding-vertical-both-5 H-text-show-row-1 H-width-100-percent H-box-sizing-border-box" style="background: #f7f7f7;" >
                            <img src="/ui/image/shopbukeyilingqu.png" class="H-width-100-percent H-display-block" />
                 
                        </div>
						 
						<div class="H-font-size-14 H-text-show-row-1 H-width-100-percent H-overflow-hidden" style="margin-top:-57px;margin-left: 15px;font-size: 18px;color: white;font-weight: 700;">￥<?=$row['money']?></div>
						
                        <div class="H-font-size-12 H-text-show-row-1 H-theme-font-color-999 H-max-width-100-percent" style="margin-left: 15px;color: white;">满<?=$row['manjian']?>可用</div>
						
						
                    </div>	
					
					<?php } else { ?>	
			
				       <div class="swiper-slide">
                        <div class="H-padding-horizontal-both-5 H-padding-vertical-both-5 H-text-show-row-1 H-width-100-percent H-box-sizing-border-box" style="background: #f7f7f7;" onclick="lio(<?=$row['id']?>)">
                            <img src="/ui/image/shopkeyiling.png" class="H-width-100-percent H-display-block" />
                 
                        </div>
						 
						<div class="H-font-size-14 H-text-show-row-1 H-width-100-percent H-overflow-hidden" style="margin-top:-57px;margin-left: 15px;font-size: 18px;color: white;font-weight: 700;">￥<?=$row['money']?></div>
						
                        <div class="H-font-size-12 H-text-show-row-1 H-theme-font-color-999 H-max-width-100-percent" style="margin-left: 15px;color: white;">满<?=$row['manjian']?>可用</div>
						
						
                    </div>	
					
					<?php } ?>	

			


			
			<?php } ?>	
					
				
                </div>
            </div>
        </div>
		
		
		 <div class="H-flexbox-horizontal H-theme-background-color-white H-border-vertical-bottom-after">
            <div class="H-padding-vertical-both-10"><img src="/ui/image/dianpudongtai.png" alt="" title="" class="H-display-block H-margin-horizontal-left-10" style="width: 73px; height: 73px;   margin-top: 12px;" /></div>
            <div class="H-flex-item H-padding-10">
                       <div class="swiper-containerr H-width-100-percent H-height-100-percent">
            <div class="swiper-wrapper">

					<?php 

    $sql="select * from tbl_taospp where ggunit=".$maijiaid." and state=0 order by id desc limit 3";
$query=mysql_query($sql);
              if(!mysql_affected_rows()){
            echo '
			    <div class="H-padding-vertical-bottom-10"></div>
       <span class="H-badge H-display-inline-block" style="margin-left:32%"><label class="H-display-inline-block H-vertical-middle H-theme-background-color8 H-theme-font-color-white H-font-size-12" style="margin-top:35px">暂无最新动态</label></span>

			';
}
while ($row=mysql_fetch_array($query)) {
	$a=explode(',',$row['img']);
    $img=$a[0];

 ?>  
			
			    <div class="swiper-slide">
				
        <div onclick="H.openWin('htspxq', 'htspxq.php?fid=<?=$row['infoid']?>');"  class="H-flexbox-horizontal" style="width: 23.2%;">
            <div class="H-flex-item H-text-show-row-1 H-border-vertical-bottom-after H-theme-font-color-999 H-text-show-row-1 H-box-sizing-border-box H-padding-vertical-both-10">
			<!----------------
                <div class="H-flexbox-horizontal">
                    <span class="H-vertical-middle H-position-relative animated bounceInDown">
                        <label class="H-display-block H-font-size-12 H-theme-font-color-white H-padding-horizontal-both-15 H-theme-background-color5">最新上新</label>
                        <label class="H-display-block H-bugle-left H-theme-border-color-white H-position-absolute" style="border-width:12px; right:-2px;bottom:0;top: -1px;"></label>
                    </span>
			
                    <span class="H-flex-item H-text-show-row-1 H-box-sizing-border-box H-padding-horizontal-left-5 H-font-size-15 H-font-weight-600 H-theme-font-color-black">全城最棒</span>
				
                </div>
				
				------------------>
                <label class="H-font-size-12 H-padding-horizontal-left-10"><?=mb_substr($row['chtitle'],0,10,'utf-8')?>...</label>
                <div class="H-font-size-12 H-text-show-row-1 H-padding-horizontal-left-10">
                    <label>￥
		<?php if($row['entitle']==9){ ?>
		<?=$row['outprice']?>
		<?php } ?>
		<?php if($row['entitle']!=9){ ?>
		<?=$row['zswprice']?>
		<?php } ?>	
		</label>
                </div>
				
            </div>
            <div class="H-padding-10">
                <img src="<?php echo $img ?>" style="width:70px;height:70px;display: block; " />
            </div>
			
        </div>
				
				</div>		
<?php } ?>
	
            </div>
        </div>	
            </div>
        </div>

        <div id="all" class="H-channel-text H-theme-font-color7 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">
            全部商品
        </div>
		
		<?php 
		
$reslut = "select count(*) as a from tbl_taospp where ggunit=".$maijiaid." and state=0";
$query_reslut = mysql_query($reslut);
$row_reslut=mysql_fetch_array($query_reslut);
$count=$row_reslut['a'];
//页面数量
$page_size=10;
//总页数
$page_count = ceil($count/$page_size);
//第几页
$page=$_GET['page'];
if($page==''){
  $page=1;
}
$last=$page-1;//上一页
$next=$page+1;//下一页

//页面起始条数
$offset=$page_size*($page-1);		
    $sql="select * from tbl_taospp where ggunit=".$maijiaid." and state=0  order by id desc  LIMIT $offset,$page_size";
$query=mysql_query($sql);
              if(!mysql_affected_rows()){
            echo '
    <div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color8 H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color8 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">商品还没有上传商品</div>
    </div>
			';
}
while ($row=mysql_fetch_array($query)) {
	$a=explode(',',$row['img']);
    $img=$a[0];
 ?>    

		 <div onclick="H.openWin('htspxq', './htspxq.php?fid=<?=$row['id']?>');"  class="H-display-table-cell H-float-left  H-box-sizing-border-box H-width-avg-2 H-padding-horizontal-right-3 H-padding-horizontal-left-3 H-margin-vertical-bottom-10">
            <div class="H-theme-background-color-white H-border-both H-theme-border-color-ccc H-border-radius-3 H-overflow-hidden">
                <img src="<?php echo $img ?>" style="width:200px;height:200px;" class="H-width-100-percent H-display-block" alt="" title="" />
                <div class="H-font-size-14 H-text-show-row-2 H-padding-vertical-top-5 H-padding-horizontal-both-8">
                    <span><?=mb_substr($row['chtitle'],0,7,'utf-8')?> </span>
                </div>
                <div class="H-flexbox-horizontal H-border-vertical-bottom-after H-padding-vertical-bottom-8 H-padding-vertical-top-3">
                    <div class="H-flex-item H-font-size-11 H-padding-horizontal-left-8" style="color:red;"><span>￥
		<?php if($row['entitle']==9){ ?>
		<?=$row['outprice']?>
		<?php } ?>
		<?php if($row['entitle']!=9){ ?>
		<?=$row['zswprice']?>
		<?php } ?></span></div>
		
                </div>

            </div>
        </div>
		
		

<?php } ?>
		
	
&nbsp;

    <?php

    if($page==1){  
      if($page_count>1){  
      echo "<a href='taomaijiashop.php?page=".$next."&fid=".$_GET['fid']."'  style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>下一页</a>&nbsp;&nbsp;&nbsp;";
	  } 
   }else
    if($page==$page_count){
      echo "&nbsp;&nbsp;<a href='taomaijiashop.php?page=".$last."&fid=".$_GET['fid']."' style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>上一页</a>&nbsp;&nbsp;&nbsp;";
    }else{
      echo "&nbsp;&nbsp;<a href='taomaijiashop.php?page=".$last."&fid=".$_GET['fid']."' style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>上一页</a>&nbsp;&nbsp;&nbsp;";
      echo "<a href='taomaijiashop.php?page=".$next."&fid=".$_GET['fid']."' style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>下一页</a>&nbsp;&nbsp;&nbsp;"; 
    }
  ?>	
			
	<br><br>
    </div>
     
	  	<?php if($_COOKIE['userid']){ ?>
	 
	  <footer class="H-footer H-flexbox-horizontal H-theme-background-color-white H-border-vertical-top-after" id="footer"> 
	  
	  <?php
	  
	$sqlhu = "select * from tbl_shoucang where  maijia = '".$maijiaid."'  AND userid = '".$_COOKIE['userid']."'  ";
    $queryhu=mysql_query($sqlhu);
    $rowhu=mysql_fetch_array($queryhu);
	  ?>
	  
	  	<?php if($rowhu){ ?>
		<div  class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active  H-theme-font-color-black">
            <div>
                <span class="H-icon H-display-block H-line-height-normal">	
			<img src="/ui/image/shopyishoucang.png" style="width:50%;height:50%">
				</span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">已收藏</strong>
            </div>
        </div>
	  	<?php } else {?>	
	  
        <div onclick="window.location.href='?act=sc&fid=<?=$_GET['fid']?>&maijia=<?=$_GET['fid']?>'" class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active  H-theme-font-color-black">
            <div>
                <span class="H-icon H-display-block H-line-height-normal">	
			<img src="/ui/image/shopshoucang.png" style="width:50%;height:50%">
				</span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">收藏店铺</strong>
            </div>
        </div>
		  	<?php }?>	
		
		
        <div onclick="window.location.href='liaoliao.php?fid=<?=$_GET['fid']?>'" class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active  H-theme-font-color-black">
            <div>
                <span class="H-icon H-display-block H-line-height-normal">
				<img src="/ui/image/lianximaijia.png" style="width:50%;height:50%">
				</span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">联系店家</strong>
            </div>
        </div>		      
    </footer> 	
	  	<?php } else {?>	
		
		 <footer class="H-footer H-flexbox-horizontal H-theme-background-color-white H-border-vertical-top-after" id="footer"> 	  
        <div onclick="lpp()" class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active  H-theme-font-color-black">
            <div>
                <span class="H-icon H-display-block H-line-height-normal">	
			<img src="/ui/image/shopshoucang.png" style="width:50%;height:50%">
				</span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">收藏店铺</strong>
            </div>
        </div>		
        <div onclick="lpp()" class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active  H-theme-font-color-black">
            <div>
                <span class="H-icon H-display-block H-line-height-normal">
				<img src="/ui/image/lianximaijia.png" style="width:50%;height:50%">
				</span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">联系店家</strong>
            </div>
        </div>
    </footer> 
	<?php }?>	
	
	<?php
$allurl='http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
?>  
    <script src="/ui/script/H.js" type="text/javascript"></script>
	<script src="/ui/js/jquery-2.1.3.min.js"></script>		
	<script type="text/javascript" src="/ui/layer/mobile/layer.js"></script> 
	<script src="/ui/plugins/swiper/swiper.min.js"></script>
	
    <script type="text/javascript">
	var allurl='<?echo $allurl?>';
    document.cookie="popped="+allurl
        var swiper3 = new Swiper('.swiper-container', {
            slidesPerView: 2.3,
            spaceBetween: 5,
            freeMode: true
        });
    </script>
    <script type="text/javascript">
        var swiper = new Swiper('.swiper-containerr', {
            pagination: '.swiper-pagination',
            autoplay: 3000,
        });
    </script>
	    <script type="text/javascript">
			  function lpp(){
	   	layer.open({
    content:'请先登录'
    ,btn: ['OK']
    ,yes: function(index){
    location.href = 'mlogin.php'; 
    }
    });			  
	 }
		</script>
    <script type="text/javascript">
	  function lio(d){
		var udd=d; 
        $.ajax({
        url: 'putongquanlq.php',
        type: 'POST',
        dataType: 'json',
        data: {
		udd: udd
		},
      })
    .done(function(respon) {
    if (respon.error==0) {         
	layer.open({
    content: '领取成功'
    ,btn: ['OK']
    ,yes: function(index){
	location.reload();
    }
  });     
    }else if(respon.error==1){
       	layer.open({
    content: '已领过'
    ,btn: ['OK']
    ,yes: function(index){
	location.reload();
    }
  }); 
    }else{
   	layer.open({
    content:'请先登录'
    ,btn: ['OK']
    ,yes: function(index){
    location.href = 'mlogin.php';  	
    }
    }); 

            }
          })
	  }
    </script>	
</body>
</html>